<?php

  session_start();
  include "config.php";
  include "ALcustomerDemandReport.php";

  if(isset($_SESSION["user"]))
  {
    include "$header";
    include "$body";
?>

<div style="position:absolute; top:0px; left:1px; border:0;">
  <span class="page">Prepare Customer Demand Report</span>
</div>
  
<?php

  include "$H_pcdr";

  if(isset($_POST["submit"]))
  {
    $start_date = ltrim($_POST["start_date"]);
    $end_date = ltrim($_POST["end_date"]);

//    if(validSearchDetails($start_date, $end_date) == true)
//    {
      echo "<SCRIPT language='Javascript'>";
      echo "  window.location.href = 'prepareCustomerDemandReport_1report.php';";
      echo "</SCRIPT>";
//    }
//    else
//    {
//    }
  }
?>

<b>PREPARE A CUSTOMER DEMAND REPORT</b>
<p>
<font color="red">*</font><font face="Century Gothic" style="font-size:12px"> = mandatory field</font>
<p>
<form name="date_range" action="" method="post">
  <table class="date_range" width="90%" border="0" cellpadding="5" cellspacing="5">
    <tr>
      <td align="right">
        <span class="style3"><b>Start Date</b><font color="red">*</font></span>
      </td>
      <td width="64%" align="left">
        <select class="date_range" name="sd_day" style="font-family:'Century Gothic'; font-size:12px; width:50px">
          <option value ="01">1</option>
          <option value ="02">2</option>
          <option value ="03">3</option>
          <option value ="04">4</option>
          <option value ="05">5</option>
          <option value ="06">6</option>
          <option value ="07">7</option>
          <option value ="08">8</option>
          <option value ="09">9</option>
          <option value ="10">10</option>
          <option value ="11">11</option>
          <option value ="12">12</option>
          <option value ="13">13</option>
          <option value ="14">14</option>
          <option value ="15">15</option>
          <option value ="16">16</option>
          <option value ="17">17</option>
          <option value ="18">18</option>
          <option value ="19">19</option>
          <option value ="20">20</option>
          <option value ="21">21</option>
          <option value ="22">22</option>
          <option value ="23">23</option>
          <option value ="24">24</option>
          <option value ="25">25</option>
          <option value ="26">26</option>
          <option value ="27">27</option>
          <option value ="28">28</option>
          <option value ="29">29</option>
          <option value ="30">30</option>
          <option value ="31">31</option>
        </select>
        <select class="date_range" name="sd_month" style="font-family:'Century Gothic'; font-size:12px; width:100px">
          <option value ="01">January</option>
          <option value ="02">February</option>
          <option value ="03">March</option>
          <option value ="04">April</option>
          <option value ="05">May</option>
          <option value ="06">June</option>
          <option value ="07">July</option>
          <option value ="08">August</option>
          <option value ="09">September</option>
          <option value ="10">October</option>
          <option value ="11">November</option>
          <option value ="12">December</option>
        </select>
        <select class="date_range" name="sd_year" style="font-family:'Century Gothic'; font-size:12px; width:75px">
		  <option value ="2007">2007</option>
          <option value ="2006">2006</option>
		  <option value ="2005">2005</option>
		  <option value ="2004">2004</option>
		  <option value ="2003">2003</option>
		  <option value ="2002">2002</option>
		  <option value ="2001">2001</option>
		  <option value ="2000">2000</option>
		  <option value ="1999">1999</option>
		  <option value ="1998">1998</option>
		  <option value ="1997">1997</option>
		  <option value ="1996">1996</option>
		  <option value ="1995">1995</option>
		  <option value ="1994">1994</option>
		  <option value ="1993">1993</option>
		  <option value ="1992">1992</option>
		  <option value ="1991">1991</option>
          <option value ="1990">1990</option>
        </select>
      </td>
    </tr>
    <tr>
      <td align="right">
        <span class="style3"><b>End Date</b><font color="red">*</font></span>
      </td>
      <td width="64%" align="left">
        <select class="date_range" name="ed_day" style="font-family:'Century Gothic'; font-size:12px; width:50px">
          <option value ="01">1</option>
          <option value ="02">2</option>
          <option value ="03">3</option>
          <option value ="04">4</option>
          <option value ="05">5</option>
          <option value ="06">6</option>
          <option value ="07">7</option>
          <option value ="08">8</option>
          <option value ="09">9</option>
          <option value ="10">10</option>
          <option value ="11">11</option>
          <option value ="12">12</option>
          <option value ="13">13</option>
          <option value ="14">14</option>
          <option value ="15">15</option>
          <option value ="16">16</option>
          <option value ="17">17</option>
          <option value ="18">18</option>
          <option value ="19">19</option>
          <option value ="20">20</option>
          <option value ="21">21</option>
          <option value ="22">22</option>
          <option value ="23">23</option>
          <option value ="24">24</option>
          <option value ="25">25</option>
          <option value ="26">26</option>
          <option value ="27">27</option>
          <option value ="28">28</option>
          <option value ="29">29</option>
          <option value ="30">30</option>
          <option value ="31">31</option>
        </select>
        <select class="date_range" name="ed_month" style="font-family:'Century Gothic'; font-size:12px; width:100px">
          <option value ="01">January</option>
          <option value ="02">February</option>
          <option value ="03">March</option>
          <option value ="04">April</option>
          <option value ="05">May</option>
          <option value ="06">June</option>
          <option value ="07">July</option>
          <option value ="08">August</option>
          <option value ="09">September</option>
          <option value ="10">October</option>
          <option value ="11">November</option>
          <option value ="12">December</option>
        </select>
        <select class="date_range" name="ed_year" style="font-family:'Century Gothic'; font-size:12px; width:75px">
		  <option value ="2007">2007</option>
          <option value ="2006">2006</option>
		  <option value ="2005">2005</option>
		  <option value ="2004">2004</option>
		  <option value ="2003">2003</option>
		  <option value ="2002">2002</option>
		  <option value ="2001">2001</option>
		  <option value ="2000">2000</option>
		  <option value ="1999">1999</option>
		  <option value ="1998">1998</option>
		  <option value ="1997">1997</option>
		  <option value ="1996">1996</option>
		  <option value ="1995">1995</option>
		  <option value ="1994">1994</option>
		  <option value ="1993">1993</option>
		  <option value ="1992">1992</option>
		  <option value ="1991">1991</option>
          <option value ="1990">1990</option>
        </select>
      </td>
    </tr>
  </table>
  <p>
  <input name="submit" type=submit style="font-family:'Century Gothic'; font-size:12px; color:#000000; border:1px solid #000000; width:70px; background-color:#FFFFFF" value="Search"/>
</form>
</BODY>

<?php

  include "$footer";


  }

?>